package cn.finder.httpcommons;

public class DefaultLogger implements ILogger {

	 // Fields
    public final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public final String LOG_FILE_NAME = "sdk.log";

    // Methods
    public DefaultLogger()
    {
        /*try
        {
            Trace.Listeners.Add(new TextWriterTraceListener(LOG_FILE_NAME));
        }
        catch (Exception)
        {
            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
        }
        Trace.AutoFlush = true;*/

    }
    public void error(String message)
    {
       // Trace.WriteLine(message, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " ERROR");
    }
    public void info(String message)
    {
       // Trace.WriteLine(message, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " INFO");
    }
    public void warn(String message)
    {
       // Trace.WriteLine(message, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " WARN");
    }
}
